package com.mango.mstock;

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

public class FloatingWindow extends LinearLayout {
	
	@SuppressLint("InflateParams")
	public FloatingWindow(Context context) {
		super(context);
		setOrientation(LinearLayout.VERTICAL);
		
		this.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT));
		
		//获取浮动窗口视图所在布局
		View view = LayoutInflater.from(context).inflate(  
                R.layout.layout_floating, null); 
		this.addView(view);
		
	}
	
	@Override
	public boolean performClick() {
		return super.performClick();
	}

}
